package com.cblz.bd.server.frontend.controller;

import com.cblz.bd.common.core.utils.ResultResponse;
import com.cblz.bd.server.core.annotation.UserApiController;
import com.cblz.bd.server.core.service.BaConfigService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * {@code @Name:} FrontendSiteController
 * {@code @Description: } 前端系统设置控制层
 * {@code @Author:} by yanjieping
 * {@code @CreateDate:} 2023/2/14 - 周二
 */
@UserApiController("api")
@RequiredArgsConstructor
public class FrontendSiteController {

    private final BaConfigService baConfigService;

    @GetMapping("index/index")
    public ResultResponse index() {
        return new ResultResponse().data(Map.of("site", baConfigService.getInitConfig(), "open_member_center", true));
    }


}
